package org.come.Jpanel;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.math.BigDecimal;
import java.util.Vector;

import org.come.until.*;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import org.come.Frame.MsgJframe;
import org.come.bean.Meridians;
import org.come.socket.Agreement;
import org.come.socket.SendMessageUntil;
import org.soaring.btn.CharacterMeridiansBtn;
import org.come.model.LianHua;
import com.tool.role.BaseMeridians;
import com.tool.role.RoleData;
import com.tool.role.RoleProperty;
import com.tool.tcpimg.UIUtils;
import com.updateNew.MyIsif;

/**
 * @author HGC<br>
 * @time 2020年5月13日 下午4:56:06<br>
 * @class 类名:CharacterMeridiansMainJpanel 人物经脉修炼主面板 编号:<br>
 */
public class CharacterMeridiansMainJpanel extends JPanel {
	// 交信 对应 经脉编号 12
	// 然谷 对应 经脉编号 11
	// 横谷 对应 经脉编号 10
	// 乳根 对应 经脉编号 9
	// 晴明 对应 经脉编号 8
	// 盆缺 对应 经脉编号 7
	// 梁门 对应 经脉编号 6
	// 横鼻 对应 经脉编号 5
	// 足三里 对应 经脉编号 4
	// 解溪 对应 经脉编号 3
	// 冲阳 对应 经脉编号 2
	// 属兑 对应 经脉编号 1
    private JLabel labName, labQuality, labLvl, labExp, labAttribute, labIntegral, labxianyu;
	private JLabel[] labMeridians, labValue;
	private BigDecimal money = null;
	private String gold = null;//重洗消耗金币
	private CharacterMeridiansBtn btnRedo, btnPractice, btnSeepUp;
	private int ChooseNum = -1, moneyType = 0;

	private JLabel lockAttr;// 锁定属性
	private JLabel lockQuality;// 锁定品质
	private String lockAttrMsg;
	private String lockQualityMsg;

	public CharacterMeridiansMainJpanel() {
//        49, 78, 600, 300
		if("水墨UI".equals(MyIsif.getStyle())) {
			this.setBounds(47, 60, 524, 347);
		}else{
			this.setBounds(16, 72, 544, 347);
		}
		setOpaque(false);
		setLayout(null);

		// getListOne();
		getLabValue();
		getLabLvl();
        getLabName();
		getLabQuality();
		getLabExp();
		getLabAttribute();
//		getBtnPractice();
		getBtnRedo();
		getBtnSeepUp();
		getLabIntegral();
		getLabMeridians();
		getLabxianyu();

		setLock();
//        refreshAllAttribute();
	}
	
	public JLabel getLockAttr() {
		return lockAttr;
	}
	
	public JLabel getLockQuality() {
		return lockQuality;
	}

	void setLock() {
		lockAttr = new JLabel();
		lockAttr.setBounds(285, 20, 13, 13);//锁定方格
		lockAttr.addMouseListener(new LockListen(lockAttr));
		this.add(lockAttr);
		lockQuality = new JLabel();
		lockQuality.setBounds(285, 50, 13, 13);
		lockQuality.addMouseListener(new LockListen(lockQuality));
		this.add(lockQuality);
	}

	// 属性加成公式
	// RoleProperty.getRoleProperty().meridiansVector.get(0)
	// RoleData.getRoleData().getLoginResult().getScoretype("水陆积分")

	public void refreshAllAttribute() {
		ChooseNum = -1;
		Vector<BaseMeridians> meridiansVector = RoleProperty.getRoleProperty().meridiansVector;
		int size = meridiansVector.size();
		//labIntegral.setText("10/" + RoleData.getRoleData().getLoginResult().getScoretype("勇者积分"));
		if (moneyType == 1) {
			labxianyu.setText(String.valueOf(RoleData.getRoleData().getLoginResult().getCodecard()));
		}
		for (int i = 0, len = labMeridians.length; i < len; i++) {
			if (i < size) {
				BaseMeridians baseMeridians = meridiansVector.get(i);
				labMeridians[i].setIcon(CutButtonImage.getImage("inkImg/hongmu/soaringSkill/dot.png", -1, -1));
				labValue[i].setText(baseMeridians.getKey() + ":" + String.format("%.2f", baseMeridians.getKeyValue()));
				labMeridians[i].setText(getMeridians(i));
			} else {
				labMeridians[i].setIcon(null);
				labValue[i].setText(null);
			}
		}
		refreshMeridians(null);
	}

	/** 获取经脉名称 */
	public String getMeridians(int value) {
		switch (value) {
		case 0:
			return "属兑";
		case 1:
			return "冲阳";
		case 2:
			return "解溪";
		case 3:
			return "神阙";
		case 4:
			return "梁门";
		case 5:
			return "盆缺";
		case 6:
			return "晴明";
		case 7:
			return "乳根";
		case 8:
			return "横谷";
		case 9:
			return "然谷";
		case 10:
			return "交信";
		case 11:
			return "天门";
		}
		return "不明";
	}

	/** 品质颜色区分 绿色=其余 蓝色>60 紫色>75 橙色>90 */
	public Color getQualityColor(int quality) {
		if (quality > 7) {
			return Color.orange;
		} else if (quality > 5) {
			return UIUtils.getColor("#CEE82EE");
		} else if (quality > 2) {
			return UIUtils.getColor("#C00FFFF");
		} else {
			return Color.green;
		}
	}

	/** 服务器刷新面板 */
	public void serverRefreshView(BaseMeridians baseMeridians) {
		int bh = baseMeridians.getId() - 1;
		if (labMeridians[bh].getIcon() == null) {
			labMeridians[bh].setIcon(CutButtonImage.getImage("inkImg/hongmu/soaringSkill/dot.png", -1, -1));
		}
		if (ChooseNum != bh) {
			if (ChooseNum != -1) {
                labMeridians[ChooseNum].setIcon(CutButtonImage.getImage("inkImg/hongmu/soaringSkill/dot.png", -1, -1));
            }
			ChooseNum = bh;
			labMeridians[ChooseNum].setIcon(CutButtonImage.getImage("inkImg/hongmu/soaringSkill/dotChoose.png", -1, -1));
		}
		labValue[bh].setText(baseMeridians.getKey() + ":" + String.format("%.2f", baseMeridians.getKeyValue()));
		if (moneyType == 1) {
			labxianyu.setText(String.valueOf(RoleData.getRoleData().getLoginResult().getCodecard()));
		}

		refreshMeridians(baseMeridians);
	}

	BaseMeridians baseMeridians;
	Meridians meridians;
	
	public Meridians getMeridians(){
		return meridians;
	}

	/** 刷新选中的经脉 */
	public void refreshMeridians(BaseMeridians baseMeridians) {
		this.baseMeridians = baseMeridians;
		if (baseMeridians == null) {
            labName.setText(null);
			labQuality.setText(null);
			labLvl.setText(null);
			labExp.setText(null);
			numExp = 0;
			labAttribute.setText(null);
			meridians = null;
			lockAttr.setIcon(null);
			lockQuality.setIcon(null);
			lockAttrMsg = null;
			lockQualityMsg = null;
			labIntegral.setText(null);
			gold = null;
			money = null;
			return;
		}
		meridians = UserMessUntil.getAllMeridians().getByQuality(baseMeridians.getId(), baseMeridians.getQuality());
        labName.setText(getMeridians(ChooseNum));
		labMeridians[ChooseNum].setIcon(CutButtonImage.getImage("inkImg/hongmu/soaringSkill/dotChoose.png", -1, -1));
		labQuality.setText(meridians.getQualityName());
		labQuality.setForeground(getQualityColor(meridians.getQuality()));
       // int lvl = baseMeridians.getLvl();
		String stagename = meridians.getStagesName().split("_")[baseMeridians.getStage()];
		labLvl.setText(stagename);
		labExp.setText(baseMeridians.getExp() + "/" + meridians.getAllExp());
		labAttribute.setText(baseMeridians.getKey() + ":" + String.format("%.2f", baseMeridians.getKeyValue()));
		numExp = (int) ((double) baseMeridians.getExp() / meridians.getAllExp() * 185);
		numExp = numExp == 0 ? 1 : numExp;
		if (moneyType == 0) {
			money = new BigDecimal(meridians.getGold());
		}else {
			money = new BigDecimal(meridians.getMoney());
		}
		
		gold = meridians.getResetGold() + "";
		labIntegral.setText(meridians.getExp()+"");
	}

	private ImageIcon icon;
	private ImageIcon iconExp;
	private ImageIcon iconMoney;
	private int numExp;

	@Override
	protected void paintComponent(Graphics g) {
		super.paintComponent(g);
		if("水墨UI".equals(MyIsif.getStyle())) {
			if (icon == null) {
				icon = new ImageIcon("inkImg/old/background/S203.png");
			}
			g.drawImage(icon.getImage(), 0, 0, null);
			if (iconExp == null) {
				iconExp = new ImageIcon("inkImg/hongmu/soaringSkill/exp.png");
			}
			g.drawImage(iconExp.getImage(), 331, 217,numExp, 14, null);

			if (gold != null){
				g.setFont(UIUtils.TEXT_FONT1);
				g.setColor(Color.white);
				g.drawString(gold, 377, 253);
			}
			if (money != null) {
                Util.drawPrice(g, money, 377, 294);
            }
			if(moneyType == 1){
				if (iconMoney == null) {
					iconMoney = new ImageIcon("inkImg/old/background/S204.png");
				}
				g.drawImage(iconMoney.getImage(), 335, 284, null);
				g.drawImage(iconMoney.getImage(), 358, 303, null);
			}else if(moneyType == 0){
				Util.drawMoney(g, 397, 314);
			}
		}else{
			if (icon == null) {
				icon = new ImageIcon("inkImg/hongmu/1/jingamai.png");
			}
			g.drawImage(icon.getImage(), 0, 0, null);
			if (iconExp == null) {
				iconExp = new ImageIcon("inkImg/hongmu/soaringSkill/exp.png");
			}
			g.drawImage(iconExp.getImage(), 347, 220, numExp, 14, null);

			if (gold != null) {
				g.setFont(TestSetupJpanel.nameFont);
				g.setColor(Color.white);
				g.drawString(gold, 399, 253);//重洗金钱
			}
			if (money != null) {
                Util.drawPrice(g, money, 399, 294);//消耗大话币
            }
			if (moneyType == 1) {
				if (iconMoney == null) {
					iconMoney = new ImageIcon("inkImg/old/background/S204.png");
				}
				g.drawImage(iconMoney.getImage(), 353, 284, null);
				g.drawImage(iconMoney.getImage(), 373, 305, null);
			} else if (moneyType == 0) {
				Util.drawMoney(g, 420, 316);//当前大话币坐标
			}
		}
		g.setColor(Color.white);
		if (baseMeridians != null) {
			g.drawString("锁定属性", lockAttr.getX() - 62, lockAttr.getY() + 13);
			g.drawImage(new ImageIcon("skin/8100226/button/14.png").getImage(), lockAttr.getX(), lockAttr.getY(), null);
			g.drawString("锁定品质", lockQuality.getX() - 62, lockQuality.getY() + 13);
			g.drawImage(new ImageIcon("skin/8100226/button/14.png").getImage(), lockQuality.getX(), lockQuality.getY(), null);

			if (lockAttrMsg != null) {
				g.drawString(lockAttrMsg, lockAttr.getX() - 230, lockAttr.getY() + 13);
			}
			if (lockQualityMsg != null) {
				g.drawString(lockQualityMsg, lockQuality.getX() - 230, lockQuality.getY() + 13);
			}
//			g.drawString("重洗花费"+meridians.getResetGold()+"金币", lockQuality.getX() - 258, lockQuality.getY() + 43);
		}
		// g.setColor(Color.white);

	}

	class MListener implements MouseListener {
		private int num;

		public MListener(int num) {
			super();
			this.num = num;
		}

		@Override
		public void mouseClicked(MouseEvent e) {

		}

		@Override
		public void mousePressed(MouseEvent e) {
			if (num >= RoleProperty.getRoleProperty().meridiansVector.size()) {
//                rolechange//X1
				SendMessageUntil.toServer(Agreement.getAgreement().rolechangeAgreement("X1" + (num + 1)));
				return;
			}
			if (ChooseNum != -1) {
                labMeridians[ChooseNum].setIcon(CutButtonImage.getImage("inkImg/hongmu/soaringSkill/dot.png", -1, -1));
            }
			ChooseNum = num;
			BaseMeridians baseMeridians = RoleProperty.getRoleProperty().meridiansVector.get(ChooseNum);
			if (baseMeridians != null) {
				refreshMeridians(baseMeridians);
			}
		}

		@Override
		public void mouseReleased(MouseEvent e) {

		}

		@Override
		public void mouseEntered(MouseEvent e) {

			MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE12);
	        	MsgJframe.getJframe().getJapnel().JM(getMeridians(num),labValue[num].getText());
	        
		}

		@Override
		public void mouseExited(MouseEvent e) {
			MessagrFlagUntil.setMouse(MessagrFlagUntil.MOUSE1);
			FormsManagement.HideForm(46);
		}
	}

	public JLabel[] getLabMeridians() {
		if (labMeridians == null) {

			labMeridians = new JLabel[12];
			for (int i = 0; i < labMeridians.length; i++) {
				labMeridians[i] = new JLabel();
//                labMeridians[i].setIcon(CutButtonImage.getImage("inkImg/hongmu/soaringSkill/dot.png", -1, -1));
				labMeridians[i].addMouseListener(new MListener(i));
				labMeridians[i].setForeground(Color.YELLOW);
				this.add(labMeridians[i]);
			}
			if("水墨UI".equals(MyIsif.getStyle())) {
				labMeridians[0].setBounds(85, 276, 10, 11);
				labMeridians[1].setBounds(93, 245, 10, 11);
				labMeridians[2].setBounds(138, 267, 10, 11);
				labMeridians[3].setBounds(179, 251, 10, 11);
				labMeridians[4].setBounds(155, 231, 10, 11);
				labMeridians[5].setBounds(120, 219, 10, 11);
				labMeridians[6].setBounds(132, 183, 10, 11);
				labMeridians[7].setBounds(169, 190, 10, 11);
				labMeridians[8].setBounds(187, 161, 10, 11);
				labMeridians[9].setBounds(152, 146, 10, 11);
				labMeridians[10].setBounds(125, 124, 10, 11);
				labMeridians[11].setBounds(93, 154, 10, 11);
			}else{
				labMeridians[0].setBounds(90, 274, 50, 11);
//            labMeridians[0].setText("属兑");
				labMeridians[1].setBounds(97, 245, 50, 11);
//            labMeridians[1].setText("冲阳");
				labMeridians[2].setBounds(139, 265, 50, 11);
//            labMeridians[2].setText("解溪");
				labMeridians[3].setBounds(177, 250, 50, 11);
//            labMeridians[3].setText("足三里");
				labMeridians[4].setBounds(155, 231, 50, 11);
//            labMeridians[4].setText("横鼻");
				labMeridians[5].setBounds(122, 220, 50, 11);
//            labMeridians[5].setText("梁门");
				labMeridians[6].setBounds(133, 186, 50, 11);
//            labMeridians[6].setText("盆缺");
				labMeridians[7].setBounds(169, 194, 50, 11);
//            labMeridians[7].setText("晴明");
				labMeridians[8].setBounds(184, 166, 50, 11);
//            labMeridians[8].setText("乳根");
				labMeridians[9].setBounds(153, 152, 50, 11);
//            labMeridians[9].setText("横谷");
				labMeridians[10].setBounds(128, 131, 50, 11);
//            labMeridians[10].setText("然谷");
				labMeridians[11].setBounds(97, 160, 50, 11);
//            labMeridians[11].setText("交信");
			}
		}
		return labMeridians;
	}

	public void setLabMeridians(JLabel[] labMeridians) {
		this.labMeridians = labMeridians;
	}
 //属性加成显示坐标
	public JLabel[] getLabValue() {
		if (labValue == null) {
			labValue = new JLabel[12];
			for (int i = 0; i < labValue.length; i++) {
				labValue[i] = new JLabel();
				labValue[i].setForeground(Color.white);
				labValue[i].setFont(UIUtils.TEXT_FONT);
				if("水墨UI".equals(MyIsif.getStyle())) {
					labValue[i].setBounds(327 + i % 2 * 102, 19 + i / 2 * 25, 102, 24);
				}else {
					labValue[i].setBounds(314 + i % 2 * 111, 19 + i / 2 * 25, 111, 24);
				}
				this.add(labValue[i]);
			}
		}
		return labValue;
	}

	public void setLabValue(JLabel[] labValue) {
		this.labValue = labValue;
	}

	public ImageIcon getIcon() {
		return icon;
	}

	public void setIcon(ImageIcon icon) {
		this.icon = icon;
	}

	class LockListen implements MouseListener {
		JLabel label;

		public LockListen(JLabel label) {
			super();
			this.label = label;
		}

		@Override
		public void mouseClicked(MouseEvent e) {
		}

		@Override
		public void mousePressed(MouseEvent e) {
			if (meridians == null) {
				return;
			}
//==            if (GameClient.lianhua == 0) {
//                click(p, jLabels[p].getIcon() == null ? 1 : 0);
//            }
			if (label.getIcon() == null) {
				label.setIcon(CutButtonImage.getImage("skin/8100226/button/B88.png", -1, -1));

				if (lockAttr.getIcon() != null) {
					lockAttrMsg = "锁定属性花费" + meridians.getLockAttr() + "仙玉";
				}
				if (lockQuality.getIcon() != null) {
					lockQualityMsg = "锁定品质花费" + meridians.getLockQuality() + "仙玉";
				}

        		//LianHua lianHua = UserMessUntil.getAllLianHua().get2000(size);
         		//tjmsg = String.format(lianHua.getDes(), lianHua.getMoney());
			} else {
				label.setIcon(null);
				if (lockAttr.getIcon() == null) {
					lockAttrMsg = null;
				}
				if (lockQuality.getIcon() == null) {
					lockQualityMsg = null;
				}
//        		tjmsg = null;
			}
		}

		@Override
		public void mouseReleased(MouseEvent e) {
		}

		@Override
		public void mouseEntered(MouseEvent e) {
		}

		@Override
		public void mouseExited(MouseEvent e) {
		}
	}
	//穴位的名称坐标
    public JLabel getLabName() {
        if (labName == null) {
            labName = new JLabel("", SwingConstants.CENTER);
			if("水墨UI".equals(MyIsif.getStyle())) {
            	labName.setBounds(327, 175, 63, 15);
			}else {
				labName.setBounds(331, 176, 63, 15);
			}
            labName.setForeground(Color.orange);
            labName.setFont(UIUtils.TEXT_FONT1);
            this.add(labName);
        }
        return labName;
    }

    public void setLabName(JLabel labName) {
        this.labName = labName;
    }
    //品质坐标
	public JLabel getLabQuality() {
		if (labQuality == null) {
			labQuality = new JLabel("", SwingConstants.CENTER);
			if("水墨UI".equals(MyIsif.getStyle())) {
				labQuality.setBounds(431, 175, 36, 13);
			}else {
				labQuality.setBounds(420, 176, 36, 13);
			}
			labQuality.setForeground(Color.white);
			labQuality.setFont(UIUtils.TEXT_FONT);
			this.add(labQuality);
		}
		return labQuality;
	}

	public void setLabQuality(JLabel labQuality) {
		this.labQuality = labQuality;
	}

	public JLabel getLabLvl() {
		if (labLvl == null) {
			labLvl = new JLabel("", SwingConstants.CENTER);
			if("水墨UI".equals(MyIsif.getStyle())) {
				labLvl.setBounds(490, 175, 30, 13);
			}else {
				labLvl.setBounds(468, 176, 60, 13);
			}
			labLvl.setForeground(Color.white);
			labLvl.setFont(UIUtils.TEXT_FONT);
			this.add(labLvl);
		}
		return labLvl;
	}

	public void setLabLvl(JLabel labLvl) {
		this.labLvl = labLvl;
	}

	public JLabel getLabExp() {
		if (labExp == null) {
			labExp = new JLabel("", SwingConstants.CENTER);
			if("水墨UI".equals(MyIsif.getStyle())) {
				labExp.setBounds(331, 216, 186, 16);
			}else {
				labExp.setBounds(333, 218, 186, 16);
			}
			labExp.setForeground(Color.white);
			labExp.setFont(UIUtils.TEXT_FONT);
			this.add(labExp);
		}
		return labExp;
	}

	public void setLabExp(JLabel labExp) {
		this.labExp = labExp;
	}
   //属性显示坐标 
	public JLabel getLabAttribute() {
		if (labAttribute == null) {
			labAttribute = new JLabel("", SwingConstants.CENTER);
			if("水墨UI".equals(MyIsif.getStyle())) {
				labAttribute.setBounds(361, 198, 102, 13);
			}else {
				labAttribute.setBounds(361, 199, 111, 13);
			}
			labAttribute.setForeground(Color.white);
			labAttribute.setFont(UIUtils.TEXT_FONT);
			this.add(labAttribute);
		}
		return labAttribute;
	}

	public void setLabAttribute(JLabel labAttribute) {
		this.labAttribute = labAttribute;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public CharacterMeridiansBtn getBtnRedo() {
		if (btnRedo == null) {
			if("水墨UI".equals(MyIsif.getStyle())) {
				btnRedo = new CharacterMeridiansBtn("skin/8100226/button/2.png", 1, UIUtils.COLOR_BTNTEXT, UIUtils.TEXT_FONT,"重洗", 0, this);
	            btnRedo.setBounds(488, 196, 34, 17);
			}else {
				btnRedo = new CharacterMeridiansBtn("inkImg/hongmu/1/B30h.png", 1, UIUtils.COLOR_BTNPUTONG2, UIUtils.TEXT_FONT,
						"重洗", 0, this);
				btnRedo.setBounds(498, 198, 34, 17);
			}
			this.add(btnRedo);
		}
		return btnRedo;
	}

	public void setBtnRedo(CharacterMeridiansBtn btnRedo) {
		this.btnRedo = btnRedo;
	}

//	public CharacterMeridiansBtn getBtnPractice() {
//		if (btnPractice == null) {
//			if("水墨UI".equals(MyIsif.getStyle())) {
//				btnPractice = new CharacterMeridiansBtn("skin/8100226/button/2.png", 1, UIUtils.COLOR_BTNTEXT, UIUtils.TEXT_FONT,"转换", 1, this);
//	            btnPractice.setBounds(328, 324, 34, 17);
//			}else {
//				btnPractice = new CharacterMeridiansBtn("inkImg/hongmu/1/B30h.png", 1, UIUtils.COLOR_BTNPUTONG2, UIUtils.TEXT_FONT,
//						"转换", 1, this);
//				btnPractice.setBounds(328, 324, 34, 17);
//			}
//			this.add(btnPractice);
//		}
//		return btnPractice;
//	}

	public void setBtnPractice(CharacterMeridiansBtn btnPractice) {
		this.btnPractice = btnPractice;
	}

	public CharacterMeridiansBtn getBtnSeepUp() {
		if (btnSeepUp == null) {
			if("水墨UI".equals(MyIsif.getStyle())) {
				btnSeepUp = new CharacterMeridiansBtn("skin/8100226/button/49.png", 1, UIUtils.COLOR_BTNTEXT, UIUtils.TEXT_FONT,"金币修炼", 2, this);
	            btnSeepUp.setBounds(455, 324, 68, 17);
			}else {
				btnSeepUp = new CharacterMeridiansBtn("inkImg/hongmu/1/a7.png", 1, UIUtils.COLOR_BTNPUTONG2, UIUtils.TEXT_FONT,
						"金币修炼", 2, this);
				btnSeepUp.setBounds(455, 324, 68, 17);
			}
			this.add(btnSeepUp);
		}
		return btnSeepUp;
	}

	public void setBtnSeepUp(CharacterMeridiansBtn btnSeepUp) {
		this.btnSeepUp = btnSeepUp;
	}
//消耗经验值位置
	public JLabel getLabIntegral() {
		if (labIntegral == null) {
			labIntegral = new JLabel();
			if("水墨UI".equals(MyIsif.getStyle())) {
				labIntegral.setBounds(376, 262, 132, 14);
			}else {
				labIntegral.setBounds(399, 262, 132, 14);
			}
			labIntegral.setForeground(Color.white);
			labIntegral.setFont(UIUtils.TEXT_FONT1);
			this.add(labIntegral);
		}
		return labIntegral;
	}

	public void setLabIntegral(JLabel labIntegral) {
		this.labIntegral = labIntegral;
	}

	public int getChooseNum() {
		return ChooseNum;
	}

	public void setChooseNum(int chooseNum) {
		ChooseNum = chooseNum;
	}

	public ImageIcon getIconExp() {
		return iconExp;
	}

	public void setIconExp(ImageIcon iconExp) {
		this.iconExp = iconExp;
	}

	public int getNumExp() {
		return numExp;
	}

	public void setNumExp(int numExp) {
		this.numExp = numExp;
	}

	public JLabel getLabxianyu() {
		if (labxianyu == null) {
			labxianyu = new JLabel();
			if("水墨UI".equals(MyIsif.getStyle())) {
				labxianyu.setBounds(398, 303, 109, 14);
			}else{
				labxianyu.setBounds(418, 303, 109, 14);
			}
			labxianyu.setForeground(Color.white);
			labxianyu.setFont(UIUtils.TEXT_FONT1);
			this.add(labxianyu);
		}
		return labxianyu;
	}

	public void setLabxianyu(JLabel labxianyu) {
		this.labxianyu = labxianyu;
	}

	public int getMoneyType() {
		return moneyType;
	}

	public void setMoneyType(int moneyType) {
		this.moneyType = moneyType;
	}

	public ImageIcon getIconMoney() {
		return iconMoney;
	}

	public void setIconMoney(ImageIcon iconMoney) {
		this.iconMoney = iconMoney;
	}

}
